home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
tpapi.exe
/
DOCS
/
OLDDOCS.LZH
/
NWCONN.DOC
< prev
next >
Wrap
Text File
|
1992-10-26
|
8KB
|
185 lines
CONNECTION SERVICES
===================
--------------------------------------------------------------------------------
AttachToFileServer (ServerName : ObjectNameType;
VAR ConnectionID : WORD) : WORD;
Creates an attachment between a workstation and a specified file server.
ServerName (Input) : string containing the name of the file
server to attach to.
ConnectionID (Output) : the connectionID for the attached to
file server.
--------------------------------------------------------------------------------
AttachToFileServerWithAddress (ServerName : ObjectNameType;
VAR ConnectionID : WORD;
NetAddress : ServerAddressType) : WORD;
Creates an attachment between a workstation and a specified file server.
ServerName (Input) : string containing the name of the file
server to attach to.
ConnectionID (Output) : the connectionID for the attached to
file server.
NetAddress (Input) : address of the file server to attach to.
--------------------------------------------------------------------------------
DetachFromFileServer (ConnectionID : WORD) : WORD;
Logs out the bindery object and detaches the requesting workstation from the
specified file server.
ConnectionID (Input) : ConnectionID of the server to detach
from.
--------------------------------------------------------------------------------
EnterLoginArea (LoginSubdirectoryName : PathNameType;
NumberOfLocalDrives : WORD) : WORD;
Changes the login directory of the requesting workstation.
NOTE : Applies to file servers running Netware prior to v2.1x.
LoginSubdirectoryName (Input) : string containing the subdirectory name
with SYS:LOGIN where login.exe resides.
NumberOfLocalDrives (Input) : Number of local drives at workstation.
--------------------------------------------------------------------------------
GetConnectionInformation (ConnectionNumber : WORD;
VAR ObjectName : ObjectNameType;
VAR ObjectType : OT_BinderyType;
VAR ObjectID : OT_BinderyID;
VAR LoginTime : Byte7ArrayType) : WORD;
Returns information about the object logged in to a specified connection.
ConnectionNumber (Input) : workstation connection number for which
the information is to be returned.
ObjectName (Output) : string containing the object name of
the logged in object.
ObjectType (Output) : receives the type of the object that is
logged in.
ObjectID (Output) : receives the unique ID of the logged in
object. (0 = unused connection number)
LoginTime (Output) : receive the date and time that the
object logged in.
Byte Contents
0 Year
1 Month
2 Day
3 Hour
4 Minute
5 Second
6 Day (0 = Sunday, 1 = Monday etc)
--------------------------------------------------------------------------------
GetConnectionNumber : WORD;
Returns the connection number that the requesting workstation uses to
communicate with the default file server.
--------------------------------------------------------------------------------
GetInternetAddress (ConnectionNumber : WORD;
VAR NetworkNumber : Byte4ArrayType;
VAR PhysicalNodeAddress : Byte6ArrayType;
VAR SocketNumber : WORD) : WORD;
Returns a connection's internetwork address.
ConnectionNumber (Input) : connectionnumber of a workstation for
which the internet address is to be
obtained.
NetworkNumber (Output) : receives the network number.
PhysicalNodeAddress (Output) : receives the physical node address
SocketNumber (Output) : receives the socket number which the
shell uses to communicate with the file
server.
--------------------------------------------------------------------------------
GetObjectConnectionNumbers (ObjectName : ObjectNameType;
ObjectType : OT_BinderyType;
VAR NumberOfConnections : WORD;
VAR ConnectionList : ConnectionListType;
MaxConnections : WORD) : WORD;
Returns a list of connection numbers that indicate how many times and under
what connection numbers a bindery object is logged in to the default file
server.
ObjectName (Input) : name of the bindery object for which to
find.
ObjectType (Input) : the object type.
NumberOfConnections (Output) : the number of times the object is logged
in.
ConnectionList (Output) : the list of connection numbers for which
the object is logged in.
MaxConnections (Input) : the maximum number of connections that
can be returned in ConnectionList.
--------------------------------------------------------------------------------
GetStationAddress (VAR PhysicalNodeAddress : Byte6ArrayType);
Returns the physical node address of the requesting workstation.
PhysicalNodeAddress (Output) : the physical node address of the
requesting workstation.
--------------------------------------------------------------------------------
LoginToFileServer (ObjectName : ObjectNameType; ObjectType : OT_BinderyType;
ObjectPassword : PasswordType) : WORD;
Logs a bindery object in to the default file server.
ObjectName (Input) : string containing the object name to be
logged in.
ObjectType (Input) : bindery type of the object to be logged
in.
ObjectPassword (Input) : the bindery object password.
--------------------------------------------------------------------------------
Logout
Issues a network logout request to all connected file servers.
--------------------------------------------------------------------------------
LogoutFromFileServer (ConnectionID : WORD);
Logs out the object but does not detach the workstation from the file server.
ConnectionID (Input) : connectionID of the server to be logged
out from.
--------------------------------------------------------------------------------